package tingyu.stack_queue;

/**
 * Created by TingYan on 2018/9/16.
 */
public interface IStack<E> {

    int getSize();  //获取栈大小

    boolean isEmpty();  //判断栈是否为空

    void push(E e); //元素入栈

    E pop();    //元素出栈

    E peek();   //获取栈顶元素
}
